package com.weimall.pojo;

import java.util.ArrayList;
import java.util.List;

public class GgTbGsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GgTbGsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCzybmIsNull() {
            addCriterion("CZYBM is null");
            return (Criteria) this;
        }

        public Criteria andCzybmIsNotNull() {
            addCriterion("CZYBM is not null");
            return (Criteria) this;
        }

        public Criteria andCzybmEqualTo(String value) {
            addCriterion("CZYBM =", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotEqualTo(String value) {
            addCriterion("CZYBM <>", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmGreaterThan(String value) {
            addCriterion("CZYBM >", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmGreaterThanOrEqualTo(String value) {
            addCriterion("CZYBM >=", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmLessThan(String value) {
            addCriterion("CZYBM <", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmLessThanOrEqualTo(String value) {
            addCriterion("CZYBM <=", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmLike(String value) {
            addCriterion("CZYBM like", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotLike(String value) {
            addCriterion("CZYBM not like", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmIn(List<String> values) {
            addCriterion("CZYBM in", values, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotIn(List<String> values) {
            addCriterion("CZYBM not in", values, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmBetween(String value1, String value2) {
            addCriterion("CZYBM between", value1, value2, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotBetween(String value1, String value2) {
            addCriterion("CZYBM not between", value1, value2, "czybm");
            return (Criteria) this;
        }

        public Criteria andBbnameIsNull() {
            addCriterion("BBName is null");
            return (Criteria) this;
        }

        public Criteria andBbnameIsNotNull() {
            addCriterion("BBName is not null");
            return (Criteria) this;
        }

        public Criteria andBbnameEqualTo(String value) {
            addCriterion("BBName =", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameNotEqualTo(String value) {
            addCriterion("BBName <>", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameGreaterThan(String value) {
            addCriterion("BBName >", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameGreaterThanOrEqualTo(String value) {
            addCriterion("BBName >=", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameLessThan(String value) {
            addCriterion("BBName <", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameLessThanOrEqualTo(String value) {
            addCriterion("BBName <=", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameLike(String value) {
            addCriterion("BBName like", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameNotLike(String value) {
            addCriterion("BBName not like", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameIn(List<String> values) {
            addCriterion("BBName in", values, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameNotIn(List<String> values) {
            addCriterion("BBName not in", values, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameBetween(String value1, String value2) {
            addCriterion("BBName between", value1, value2, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameNotBetween(String value1, String value2) {
            addCriterion("BBName not between", value1, value2, "bbname");
            return (Criteria) this;
        }

        public Criteria andXhIsNull() {
            addCriterion("XH is null");
            return (Criteria) this;
        }

        public Criteria andXhIsNotNull() {
            addCriterion("XH is not null");
            return (Criteria) this;
        }

        public Criteria andXhEqualTo(Integer value) {
            addCriterion("XH =", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhNotEqualTo(Integer value) {
            addCriterion("XH <>", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhGreaterThan(Integer value) {
            addCriterion("XH >", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhGreaterThanOrEqualTo(Integer value) {
            addCriterion("XH >=", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhLessThan(Integer value) {
            addCriterion("XH <", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhLessThanOrEqualTo(Integer value) {
            addCriterion("XH <=", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhIn(List<Integer> values) {
            addCriterion("XH in", values, "xh");
            return (Criteria) this;
        }

        public Criteria andXhNotIn(List<Integer> values) {
            addCriterion("XH not in", values, "xh");
            return (Criteria) this;
        }

        public Criteria andXhBetween(Integer value1, Integer value2) {
            addCriterion("XH between", value1, value2, "xh");
            return (Criteria) this;
        }

        public Criteria andXhNotBetween(Integer value1, Integer value2) {
            addCriterion("XH not between", value1, value2, "xh");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldIsNull() {
            addCriterion("DisplayName_Old is null");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldIsNotNull() {
            addCriterion("DisplayName_Old is not null");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldEqualTo(String value) {
            addCriterion("DisplayName_Old =", value, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldNotEqualTo(String value) {
            addCriterion("DisplayName_Old <>", value, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldGreaterThan(String value) {
            addCriterion("DisplayName_Old >", value, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldGreaterThanOrEqualTo(String value) {
            addCriterion("DisplayName_Old >=", value, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldLessThan(String value) {
            addCriterion("DisplayName_Old <", value, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldLessThanOrEqualTo(String value) {
            addCriterion("DisplayName_Old <=", value, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldLike(String value) {
            addCriterion("DisplayName_Old like", value, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldNotLike(String value) {
            addCriterion("DisplayName_Old not like", value, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldIn(List<String> values) {
            addCriterion("DisplayName_Old in", values, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldNotIn(List<String> values) {
            addCriterion("DisplayName_Old not in", values, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldBetween(String value1, String value2) {
            addCriterion("DisplayName_Old between", value1, value2, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameOldNotBetween(String value1, String value2) {
            addCriterion("DisplayName_Old not between", value1, value2, "displaynameOld");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewIsNull() {
            addCriterion("DisplayName_New is null");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewIsNotNull() {
            addCriterion("DisplayName_New is not null");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewEqualTo(String value) {
            addCriterion("DisplayName_New =", value, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewNotEqualTo(String value) {
            addCriterion("DisplayName_New <>", value, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewGreaterThan(String value) {
            addCriterion("DisplayName_New >", value, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewGreaterThanOrEqualTo(String value) {
            addCriterion("DisplayName_New >=", value, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewLessThan(String value) {
            addCriterion("DisplayName_New <", value, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewLessThanOrEqualTo(String value) {
            addCriterion("DisplayName_New <=", value, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewLike(String value) {
            addCriterion("DisplayName_New like", value, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewNotLike(String value) {
            addCriterion("DisplayName_New not like", value, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewIn(List<String> values) {
            addCriterion("DisplayName_New in", values, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewNotIn(List<String> values) {
            addCriterion("DisplayName_New not in", values, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewBetween(String value1, String value2) {
            addCriterion("DisplayName_New between", value1, value2, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNewNotBetween(String value1, String value2) {
            addCriterion("DisplayName_New not between", value1, value2, "displaynameNew");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthIsNull() {
            addCriterion("DisplayWidth is null");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthIsNotNull() {
            addCriterion("DisplayWidth is not null");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthEqualTo(Integer value) {
            addCriterion("DisplayWidth =", value, "displaywidth");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthNotEqualTo(Integer value) {
            addCriterion("DisplayWidth <>", value, "displaywidth");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthGreaterThan(Integer value) {
            addCriterion("DisplayWidth >", value, "displaywidth");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthGreaterThanOrEqualTo(Integer value) {
            addCriterion("DisplayWidth >=", value, "displaywidth");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthLessThan(Integer value) {
            addCriterion("DisplayWidth <", value, "displaywidth");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthLessThanOrEqualTo(Integer value) {
            addCriterion("DisplayWidth <=", value, "displaywidth");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthIn(List<Integer> values) {
            addCriterion("DisplayWidth in", values, "displaywidth");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthNotIn(List<Integer> values) {
            addCriterion("DisplayWidth not in", values, "displaywidth");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthBetween(Integer value1, Integer value2) {
            addCriterion("DisplayWidth between", value1, value2, "displaywidth");
            return (Criteria) this;
        }

        public Criteria andDisplaywidthNotBetween(Integer value1, Integer value2) {
            addCriterion("DisplayWidth not between", value1, value2, "displaywidth");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayIsNull() {
            addCriterion("AllowDisplay is null");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayIsNotNull() {
            addCriterion("AllowDisplay is not null");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayEqualTo(String value) {
            addCriterion("AllowDisplay =", value, "allowdisplay");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayNotEqualTo(String value) {
            addCriterion("AllowDisplay <>", value, "allowdisplay");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayGreaterThan(String value) {
            addCriterion("AllowDisplay >", value, "allowdisplay");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayGreaterThanOrEqualTo(String value) {
            addCriterion("AllowDisplay >=", value, "allowdisplay");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayLessThan(String value) {
            addCriterion("AllowDisplay <", value, "allowdisplay");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayLessThanOrEqualTo(String value) {
            addCriterion("AllowDisplay <=", value, "allowdisplay");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayLike(String value) {
            addCriterion("AllowDisplay like", value, "allowdisplay");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayNotLike(String value) {
            addCriterion("AllowDisplay not like", value, "allowdisplay");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayIn(List<String> values) {
            addCriterion("AllowDisplay in", values, "allowdisplay");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayNotIn(List<String> values) {
            addCriterion("AllowDisplay not in", values, "allowdisplay");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayBetween(String value1, String value2) {
            addCriterion("AllowDisplay between", value1, value2, "allowdisplay");
            return (Criteria) this;
        }

        public Criteria andAllowdisplayNotBetween(String value1, String value2) {
            addCriterion("AllowDisplay not between", value1, value2, "allowdisplay");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}